<?php

namespace app\common\validate;

use app\common\validate\Base;
class Bank extends Base
{

    protected $rule = [
        'id|银行卡ID' => 'require|integer',
        'bank_id|开户银行' => 'require|checkBankId:bank_id', 
        'bank_address|开户地址' => 'require|min:4',
        'bank_card|银行卡号' => 'require|number|min:16',
        'owner|开户人' => 'require|chs|min:2',

    ];

    protected $message = [
    
    ];

    protected $scene = [
        // 前台添加银行卡
        'home_add' => ['bank_id','bank_address','bank_card','owner'],
        // 前台设置默认银行卡
        'home_default' => ['id'],
    ];

}